package com.cskaoyan.module.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;


@Data
@NoArgsConstructor

public class MarketCouponInfo {
    @JsonProperty("id")
    private Integer id;
    @JsonProperty("name")
    private String name;
    @JsonProperty("desc")
    private String desc;
    @JsonProperty("tag")
    private String tag;
    @JsonProperty("total")
    private Integer total;
    @JsonProperty("discount")
    private BigDecimal discount;
    @JsonProperty("min")
    private BigDecimal min;
    @JsonProperty("limit")
    private Integer limit;
    @JsonProperty("type")
    private Integer type;
    @JsonProperty("status")
    private Integer status;
    @JsonProperty("goodsType")
    private Integer goodsType;
    @JsonProperty("goodsValue")
    private Integer[] goodsValue;
    @JsonProperty("timeType")
    private Integer timeType;
    @JsonProperty("days")
    private Integer days;
    @JsonProperty("addTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
    private Date addTime;
    @JsonProperty("updateTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    @JsonProperty("deleted")
    private Boolean deleted;



    public MarketCouponInfo(Integer id, String name, String desc, String tag, Integer total, BigDecimal discount, BigDecimal min, Integer limit, Integer type, Integer status, Integer goodsType, Integer[] goodsValue, Integer timeType, Integer days, Date addTime, Date updateTime, Boolean deleted) {
        this.id = id;
        this.name = name;
        this.desc = desc;
        this.tag = tag;
        this.total = total;
        this.discount = discount;
        this.min = min;
        this.limit = limit;
        this.type = type;
        this.status = status;
        this.goodsType = goodsType;
        this.goodsValue = goodsValue;
        this.timeType = timeType;
        this.days = days;
        this.addTime = addTime;
        this.updateTime = updateTime;
        this.deleted = deleted;
    }
}
